package com.syni.mdd.yhd.common.all.controller.sms;

/**
 * @className BmsBusinessController
 * @description TOO
 * @Author cfx
 * @DATE 2019/4/15 14:25
 * @VERSION 1.0
 **/

import com.syni.mdd.yhd.common.all.entity.user.BmsUser;
import com.syni.mdd.yhd.common.all.service.BmsUserService;
import com.syni.mdd.yhd.common.all.utils.ParamData;
import com.syni.mdd.sjb.common.component.utils.feign.service.mddDistSys.FxCenterService;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/sms")
public class SmsController {

    @Autowired
    BmsUserService bmsUserService;

    /*@RequestMapping("/test")
    public Map<String,Object> test(){
        String phone = "13192294510";
        String code = IdentifyCode.getIdentifyCode();
        //SmsUtils.send(phone, code);
        Map<String,Object> resultMap = new HashMap<>();
        resultMap.put("phone",phone);
        resultMap.put("code",code);
        return ResultMapHelper.success(resultMap);
    }*/

    @RequestMapping("/callback")
    public void callback(@RequestParam(required = false) String abc){
        System.out.println("回调了？。。。。。。。。。");

        ParamData paramData = new ParamData();
        System.out.println("parData的值是：" + paramData);
    }

    @GetMapping("/okc")
    public String s(){
        bmsUserService.tegag();
        return "suucess";
    }
}
